import { StyleSheet, View, Text, TouchableOpacity, Image, ScrollView, Dimensions } from 'react-native';
import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
import useResponsive from '@/rem/rem';
import { LinearGradient } from 'expo-linear-gradient';
import axios from 'axios';
import { useRouter } from 'expo-router'
import { useState } from 'react';
import { template, Health } from '../../mock/conver';
import Svg, { Path } from 'react-native-svg';
if (!Array.isArray(template.data)) {
  throw new Error('template.data is not an array');
}
const { width, height } = Dimensions.get('window');
const list = Health.data;

export default function PmScreen() {
  const router = useRouter()
  const { w, h, fs } = useResponsive();
  const style = StyleSheet.create({
    titleDiv: {
      width: width,
      height: h(50),
    },
    titletext: {
      textAlign: 'center',
      lineHeight: h(50),
    },
    pmscroll: {
      width: width,
      height: h(703),
    },
    title: {
      width: width,
      height: h(100),
      flexDirection: 'row',
      flex: 1,
      borderBottomWidth: 1,
      borderColor: '#F0F0F0'
    },
    titleItem: {
      flex: 1,
      height: h(90),
      alignItems: 'center',
    },
    titleItemText: {
      width: w(50),
      height: h(48),
      borderRadius: 30,
      justifyContent: 'center',
      alignItems: 'center',
    },
    ItemText: {
      lineHeight: h(40)
    },
    LiaoW: {
      width: width,
      height: h(260),
      justifyContent: 'center',
      alignItems: 'center',
    },
    LiaoWimg: {
      width: w(90),
      height: h(150),
    },
    LiaoImg: {
      width: w(90),
      height: h(100),
    },
    LiaoText: {
      lineHeight: h(50),
      textAlign: 'center',
    },
    isshow: {
      display: 'none'
    },
    YiIten: {
      width: width,
      height: h(70),
      borderBottomWidth: 1,
      borderColor: '#F0F0F0',
      flex: 1,
      flexDirection: 'row',
      alignItems: 'center',
    },
    yiimgs: {
      width: 50,
      height: 50,
      borderRadius: 25,
      backgroundColor: 'red',
      justifyContent: 'center',
      
    },
    yitext: {
      width: width - 50,
      height: h(70),
      justifyContent: 'center',
    },
    list: {
      width: width,
      flexGrow: 1
    },
    container: {
      flexDirection: 'row',
      justifyContent: 'space-between',
    },
    column: {
      width: width / 2 - 16, // 减去两边的边距（总共 16px）
      marginHorizontal: 8,
    },
    item: {
      backgroundColor: '#ddd',
      marginBottom: 8,
      padding: 8,
    },
    cai: {
      width: width,
      height: h(50),
    },
    caiText: {
      textAlign: 'center',
      lineHeight: h(50),
      color: "red",
      letterSpacing: 3,
      fontWeight: "bold"
    }
  });

  const [arr, setArr] = useState([1]);

  const [leftColumn, rightColumn] = list.reduce((acc, item, index) => {
    acc[index % 2].push(item)
    return acc
  }, [[], []])

  return (
    <ThemedView>
      <ThemedView style={style.titleDiv}>
        <ThemedText style={style.titletext}>私聊</ThemedText>
      </ThemedView>
      <ScrollView style={style.pmscroll}>
        <ThemedView style={style.title}>
          <ThemedView style={style.titleItem}>
            <LinearGradient colors={['#E47911', '#FFFF00']} start={{ x: 1, y: 1 }} end={{ x: 1, y: 0 }} style={style.titleItemText}>
              <Svg t="1736301160565" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6436" width="30" height="42"><Path d="M512 768c94.208 0 170.666667 57.258667 170.666667 127.829333C682.666667 966.528 606.208 1024 512 1024s-170.666667-57.472-170.666667-128.170667C341.333333 825.258667 417.792 768 512 768zM467.925333 0h130.858667c22.912 0 41.216 18.56 41.216 41.472v130.176a41.386667 41.386667 0 0 1-41.216 41.685333H467.925333A41.514667 41.514667 0 0 1 426.666667 171.648V41.514667A41.386667 41.386667 0 0 1 467.925333 0z" fill="#ffffff" p-id="6437"></Path><Path d="M807.466667 648.832v-357.973333C807.466667 200.96 728.96 128 632.362667 128H391.68C295.082667 128 216.704 200.96 216.704 290.858667v357.845333L85.333333 853.333333h853.333334l-131.2-204.501333z" fill="#ffffff" p-id="6438"></Path><Path d="M807.466667 648.832v-357.973333C807.466667 200.96 728.96 128 632.362667 128H391.68C295.082667 128 216.704 200.96 216.704 290.858667v357.845333L85.333333 853.333333h853.333334l-131.2-204.501333z" fill="#ffffff" p-id="6439"></Path></Svg>
            </LinearGradient>
            <Text style={style.ItemText}>平台规则</Text>
          </ThemedView>
          <ThemedView style={style.titleItem}>
            <LinearGradient colors={['#FF0000', '#FF0000']} start={{ x: 1, y: 1 }} end={{ x: 1, y: 0 }} style={style.titleItemText}>
              <Svg t="1736302734587" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15627" width="32" height="32"><Path d="M194.021053 538.947368H107.789474c-16.168421 0-26.947368-10.778947-26.947369-26.947368s10.778947-26.947368 26.947369-26.947368h86.231579c16.168421 0 26.947368 10.778947 26.947368 26.947368s-13.473684 26.947368-26.947368 26.947368zM277.557895 665.6H107.789474c-16.168421 0-26.947368-10.778947-26.947369-26.947368s10.778947-26.947368 26.947369-26.947369h169.768421c16.168421 0 26.947368 10.778947 26.947368 26.947369s-10.778947 26.947368-26.947368 26.947368zM916.210526 538.947368h-86.231579c-16.168421 0-26.947368-10.778947-26.947368-26.947368s10.778947-26.947368 26.947368-26.947368H916.210526c16.168421 0 26.947368 10.778947 26.947369 26.947368s-10.778947 26.947368-26.947369 26.947368zM916.210526 665.6h-169.768421c-16.168421 0-26.947368-10.778947-26.947368-26.947368s10.778947-26.947368 26.947368-26.947369H916.210526c16.168421 0 26.947368 10.778947 26.947369 26.947369s-10.778947 26.947368-26.947369 26.947368z" fill="#ffffff" p-id="15628"></Path><Path d="M856.926316 107.789474c0-16.168421-10.778947-26.947368-26.947369-26.947369-105.094737 0-191.326316 83.536842-196.715789 188.631579-37.726316-13.473684-78.147368-21.557895-121.263158-21.557895s-83.536842 8.084211-121.263158 21.557895c-5.389474-105.094737-91.621053-188.631579-196.715789-188.631579-16.168421 0-26.947368 10.778947-26.947369 26.947369V592.842105c0 115.873684 59.284211 220.968421 145.51579 282.947369 2.694737 0 2.694737 2.694737 5.389473 2.694737s2.694737 2.694737 5.389474 2.694736c51.2 37.726316 113.178947 59.284211 180.547368 61.978948h10.778948c172.463158 0 320.673684-126.652632 342.231579-299.11579v-5.389473c2.694737-16.168421 2.694737-29.642105 2.694737-45.810527-2.694737-21.557895-2.694737-485.052632-2.694737-485.052631zM309.894737 458.105263c-8.084211 13.473684-16.168421 26.947368-21.557895 40.421053-5.389474 10.778947-13.473684 16.168421-24.252631 16.168421-2.694737 0-8.084211 0-10.778948-2.694737-13.473684-5.389474-18.863158-21.557895-13.473684-35.031579 8.084211-18.863158 16.168421-35.031579 26.947368-51.2 8.084211-13.473684 24.252632-16.168421 37.726316-8.08421s13.473684 26.947368 5.389474 40.421052z m153.6-102.4c-16.168421 2.694737-29.642105 8.084211-45.810526 13.473684-13.473684 5.389474-26.947368 13.473684-40.421053 21.557895-5.389474 2.694737-10.778947 5.389474-16.168421 5.389474-8.084211 0-16.168421-5.389474-21.557895-10.778948-8.084211-13.473684-5.389474-29.642105 8.084211-37.726315 16.168421-10.778947 32.336842-18.863158 51.2-26.947369 18.863158-8.084211 37.726316-13.473684 56.589473-16.168421 13.473684-2.694737 29.642105 5.389474 32.336842 21.557895 0 10.778947-10.778947 26.947368-24.252631 29.642105z" fill="#ffffff" p-id="15629"></Path></Svg>
            </LinearGradient>
            <Text style={style.ItemText}>买家求购</Text>
          </ThemedView>
          <ThemedView style={style.titleItem}>
            <LinearGradient colors={['#FF0000', '#FFFFFF']} start={{ x: 1, y: 1 }} end={{ x: 1, y: 0 }} style={style.titleItemText}>
              <Svg t="1736302792453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17087" width="32" height="32"><Path d="M719.767 650.926l97.837-62.4 9.077 43.374-89.614 90.933z" fill="#F6B168" p-id="17088"></Path><Path d="M764.254 728.604c-6.914 0-13.699-3.358-17.804-9.555-6.507-9.822-3.818-23.06 6.004-29.567a127.399 127.399 0 0 0 18.405-14.832 128.438 128.438 0 0 0 34.83-60.099c6.04-23.474 5.25-48.137-2.282-71.316-3.64-11.206 2.49-23.242 13.696-26.882 11.215-3.644 23.242 2.492 26.882 13.696 10.041 30.9 11.086 63.797 3.024 95.133a171.101 171.101 0 0 1-46.403 80.054 170.04 170.04 0 0 1-24.59 19.816 21.23 21.23 0 0 1-11.762 3.552z" fill="#333333" p-id="17089"></Path><Path d="M737.691 661.353c-8.234 0-16.078-4.795-19.573-12.826-4.701-10.804 0.247-23.374 11.05-28.074 36.837-16.027 64.306-49.028 73.484-88.274 2.682-11.472 14.156-18.596 25.63-15.916 11.473 2.683 18.598 14.158 15.916 25.631-12.232 52.31-48.87 96.303-98.006 117.681a21.235 21.235 0 0 1-8.501 1.778z" fill="#333333" p-id="17090"></Path><Path d="M203.184 342.04c-21.501 11.029-48.361 9.348-68.655-6.508-27.853-21.761-32.792-61.982-11.03-89.835l78.805-100.865c21.761-27.853 61.982-32.792 89.835-11.03" fill="#F6B168" p-id="17091"></Path><Path d="M174.016 370.389c-18.732 0-37.354-6.117-52.622-18.046-37.078-28.969-43.676-82.703-14.707-119.781l78.805-100.865c28.969-37.078 82.702-43.676 119.78-14.707 9.285 7.254 10.931 20.661 3.677 29.945-7.254 9.286-20.66 10.931-29.945 3.677-18.54-14.484-45.406-11.187-59.89 7.354L140.31 258.831c-7.017 8.981-10.116 20.156-8.727 31.468 1.389 11.312 7.1 21.406 16.081 28.422 13.059 10.203 31.029 11.905 45.785 4.337 10.485-5.375 23.341-1.238 28.718 9.246s1.238 23.341-9.246 28.718c-12.246 6.281-25.604 9.367-38.905 9.367z" fill="#333333" p-id="17092"></Path><Path d="M735.93 342.267c21.426 10.778 48.054 9.011 68.208-6.735 27.853-21.761 32.792-61.982 11.03-89.835l-78.805-100.865c-21.761-27.853-61.982-32.792-89.835-11.03" fill="#F6B168" p-id="17093"></Path><Path d="M764.626 370.373c-13.085 0-26.218-2.979-38.283-9.047-10.525-5.295-14.766-18.12-9.471-28.645 5.294-10.526 18.117-14.766 28.645-9.471 14.686 7.388 32.54 5.626 45.487-4.488 8.98-7.017 14.691-17.11 16.08-28.422 1.389-11.312-1.71-22.487-8.727-31.468l-78.805-100.865c-7.017-8.981-17.11-14.691-28.422-16.081-11.312-1.388-22.487 1.71-31.469 8.727-9.283 7.252-22.691 5.608-29.944-3.677-7.254-9.284-5.607-22.691 3.677-29.945 17.961-14.034 40.315-20.231 62.936-17.454 22.624 2.778 42.812 14.2 56.844 32.161l78.805 100.865c28.969 37.078 22.372 90.812-14.707 119.781-15.245 11.91-33.894 18.029-52.646 18.029z" fill="#333333" p-id="17094"></Path><Path d="M469.333 341.333m-256 0a256 256 0 1 0 512 0 256 256 0 1 0-512 0Z" fill="#F6B168" p-id="17095"></Path><Path d="M469.333 618.666c-74.079 0-143.723-28.848-196.104-81.229S192 415.412 192 341.333c0-74.079 28.848-143.723 81.229-196.104S395.255 64 469.333 64s143.723 28.848 196.104 81.229 81.229 122.026 81.229 196.104-28.848 143.723-81.229 196.104c-52.38 52.381-122.025 81.229-196.104 81.229z m0-511.999c-62.682 0-121.612 24.409-165.935 68.732s-68.732 103.252-68.732 165.935c0 62.682 24.409 121.612 68.732 165.934S406.651 576 469.333 576s121.612-24.41 165.934-68.732S704 404.015 704 341.333s-24.41-121.612-68.732-165.935-103.252-68.731-165.935-68.731z" fill="#333333" p-id="17096"></Path><Path d="M296.804 580.982c113.39 61.177 227.925 61.177 343.604 0 37.99 20.938 61.191 39.464 69.602 55.579l27.058 126.695-27.058 64.931L748 884.654l-51.803 46.999-55.789-8.508-52.634 8.508-122.379-8.508H358.46l-103.698 8.836-67.986-47.328 38.63-49.136-16.059-128.467 32.632-88.81 54.825-37.258z" fill="#F6B168" p-id="17097"></Path><Path d="M469.333 917.333C457.551 917.333 448 907.782 448 896V682.667c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333V896c0.001 11.782-9.55 21.333-21.333 21.333z m94.26-44.512c-1.387 0-2.794-0.137-4.206-0.419-11.554-2.311-19.046-13.55-16.735-25.103l33.763-168.816c2.312-11.553 13.548-19.045 25.103-16.735 11.554 2.311 19.046 13.55 16.735 25.103L584.49 855.667c-2.029 10.141-10.936 17.154-20.897 17.154z" fill="#333333" p-id="17098"></Path><Path d="M469.333 917.333C457.551 917.333 448 907.782 448 896V682.667c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333V896c0.001 11.782-9.55 21.333-21.333 21.333z m-93.77-42.066c-9.961 0-18.868-7.013-20.896-17.154l-34.252-171.262c-2.311-11.553 5.182-22.792 16.735-25.103s22.792 5.182 25.103 16.735l34.252 171.262c2.311 11.553-5.182 22.792-16.735 25.103-1.412 0.282-2.82 0.419-4.207 0.419zM227.251 869.671c-9.8 0-18.626-6.794-20.816-16.761L184.05 751.023c-9.081-40.175-1.915-80.445 20.181-113.396 21.417-31.938 54.451-53.102 93.019-59.591 11.619-1.953 22.622 5.88 24.577 17.498 1.955 11.619-5.879 22.623-17.498 24.578-26.881 4.522-49.845 19.182-64.662 41.277-15.507 23.126-20.476 51.634-13.99 80.273l0.03 0.134 22.4 101.958c2.528 11.507-4.751 22.886-16.259 25.414-1.541 0.34-3.081 0.503-4.597 0.503z m485.727-7.112c-1.517 0-3.055-0.162-4.598-0.501-11.508-2.528-18.787-13.906-16.26-25.414l20.839-94.846a114.836 114.836 0 0 0 2.558-17.812c1.616-25.559-5.994-50.16-21.43-69.271-15.244-18.876-37.128-31.273-61.618-34.909-11.654-1.73-19.699-12.581-17.97-24.235 1.73-11.654 12.582-19.705 24.235-17.969 35.109 5.212 66.556 23.077 88.546 50.305 22.165 27.444 33.11 62.523 30.818 98.774a157.39 157.39 0 0 1-3.486 24.359l-20.818 94.759c-2.19 9.964-11.017 16.76-20.816 16.76z" fill="#333333" p-id="17099"></Path><Path d="M405.333 960C357.483 960 320 931.888 320 896s37.483-64 85.333-64c11.782 0 21.333 9.551 21.333 21.333s-9.551 21.333-21.333 21.333c-26.045 0-42.667 12.636-42.667 21.334s16.621 21.334 42.667 21.334S448 904.698 448 896c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0.001 35.888-37.482 64-85.333 64zM254.762 952.996c-47.851 0-85.333-28.112-85.333-64 0-14.736 6.578-29.025 18.522-40.235 10.216-9.588 23.932-16.693 39.665-20.547 11.445-2.805 22.994 4.2 25.796 15.646 2.803 11.443-4.202 22.993-15.645 25.796-16.069 3.937-25.671 12.925-25.671 19.341 0 8.698 16.621 21.334 42.667 21.334 10.537 0 20.791-2.232 28.872-6.284 10.532-5.28 23.352-1.025 28.633 9.506 5.282 10.532 1.025 23.352-9.507 28.633-14.105 7.072-30.703 10.81-47.999 10.81zM684 953.314c-10.516 0-20.771-1.376-30.481-4.092a102.68 102.68 0 0 1-8.443-2.758 93.894 93.894 0 0 1-10.615-4.753c-10.427-5.486-14.432-18.386-8.946-28.813 5.485-10.426 18.383-14.431 28.813-8.946a51.097 51.097 0 0 0 5.771 2.578 59.472 59.472 0 0 0 4.905 1.601c5.976 1.671 12.365 2.518 18.997 2.518 26.046 0 42.667-12.636 42.667-21.334 0-6.192-8.771-15.02-25.027-19.18-11.414-2.921-18.3-14.542-15.378-25.956 2.921-11.414 14.543-18.297 25.956-15.378 34.696 8.88 57.115 32.633 57.115 60.514-0.001 35.887-37.483 63.999-85.334 63.999z" fill="#333333" p-id="17100"></Path><Path d="M533.333 960C485.483 960 448 931.888 448 896c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0 8.698 16.621 21.334 42.666 21.334C559.379 917.334 576 904.698 576 896s-16.621-21.334-42.667-21.334c-11.782 0-21.333-9.551-21.333-21.333S521.551 832 533.333 832c47.851 0 85.333 28.112 85.333 64s-37.482 64-85.333 64zM469.333 451.66c-11.397 0-22.112-4.438-30.17-12.497l-12.497-12.497c-4.72-4.721-7.32-10.997-7.32-17.673s2.6-12.953 7.32-17.673c4.721-4.72 10.997-7.32 17.673-7.32h49.987c6.678 0 12.955 2.601 17.676 7.323 4.717 4.715 7.318 10.993 7.318 17.67 0 6.676-2.6 12.953-7.32 17.673l-12.497 12.497c-8.058 8.059-18.773 12.497-30.17 12.497z" fill="#333333" p-id="17101"></Path><Path d="M426.853 514.537c-35.29 0-64-28.71-64-64 0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0 11.764 9.57 21.333 21.333 21.333s21.333-9.57 21.333-21.333c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0.002 35.29-28.709 64-63.998 64z" fill="#333333" p-id="17102"></Path><Path d="M512.186 514.537c-35.29 0-64-28.71-64-64 0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0 11.764 9.57 21.333 21.333 21.333 11.764 0 21.334-9.57 21.334-21.333 0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0.001 35.29-28.709 64-63.999 64z" fill="#333333" p-id="17103"></Path><Path d="M362.667 320m-21.333 0a21.333 21.333 0 1 0 42.666 0 21.333 21.333 0 1 0-42.666 0Z" fill="#333333" p-id="17104"></Path><Path d="M362.667 347.733c-15.292 0-27.733-12.441-27.733-27.733s12.441-27.733 27.733-27.733S390.4 304.708 390.4 320s-12.441 27.733-27.733 27.733z m0-42.667c-8.234 0-14.933 6.699-14.933 14.934s6.699 14.934 14.933 14.934 14.934-6.699 14.934-14.934-6.7-14.934-14.934-14.934z" fill="#333333" p-id="17105"></Path><Path d="M576 320m-21.333 0a21.333 21.333 0 1 0 42.666 0 21.333 21.333 0 1 0-42.666 0Z" fill="#333333" p-id="17106"></Path><Path d="M576 347.733c-15.292 0-27.733-12.441-27.733-27.733s12.441-27.733 27.733-27.733 27.733 12.441 27.733 27.733-12.441 27.733-27.733 27.733z m0-42.667c-8.234 0-14.933 6.699-14.933 14.934s6.698 14.934 14.933 14.934 14.933-6.699 14.933-14.934-6.699-14.934-14.933-14.934z" fill="#333333" p-id="17107"></Path></Svg>
            </LinearGradient>
            <Text style={style.ItemText}>在线客服</Text>
          </ThemedView>
          <ThemedView style={style.titleItem}>
            <LinearGradient colors={['#E47911', '#FFFFFF']} start={{ x: 1, y: 1 }} end={{ x: 1, y: 0 }} style={style.titleItemText}>
              <Svg t="1736302792453" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17087" width="32" height="32"><Path d="M719.767 650.926l97.837-62.4 9.077 43.374-89.614 90.933z" fill="#F6B168" p-id="17088"></Path><Path d="M764.254 728.604c-6.914 0-13.699-3.358-17.804-9.555-6.507-9.822-3.818-23.06 6.004-29.567a127.399 127.399 0 0 0 18.405-14.832 128.438 128.438 0 0 0 34.83-60.099c6.04-23.474 5.25-48.137-2.282-71.316-3.64-11.206 2.49-23.242 13.696-26.882 11.215-3.644 23.242 2.492 26.882 13.696 10.041 30.9 11.086 63.797 3.024 95.133a171.101 171.101 0 0 1-46.403 80.054 170.04 170.04 0 0 1-24.59 19.816 21.23 21.23 0 0 1-11.762 3.552z" fill="#333333" p-id="17089"></Path><Path d="M737.691 661.353c-8.234 0-16.078-4.795-19.573-12.826-4.701-10.804 0.247-23.374 11.05-28.074 36.837-16.027 64.306-49.028 73.484-88.274 2.682-11.472 14.156-18.596 25.63-15.916 11.473 2.683 18.598 14.158 15.916 25.631-12.232 52.31-48.87 96.303-98.006 117.681a21.235 21.235 0 0 1-8.501 1.778z" fill="#333333" p-id="17090"></Path><Path d="M203.184 342.04c-21.501 11.029-48.361 9.348-68.655-6.508-27.853-21.761-32.792-61.982-11.03-89.835l78.805-100.865c21.761-27.853 61.982-32.792 89.835-11.03" fill="#F6B168" p-id="17091"></Path><Path d="M174.016 370.389c-18.732 0-37.354-6.117-52.622-18.046-37.078-28.969-43.676-82.703-14.707-119.781l78.805-100.865c28.969-37.078 82.702-43.676 119.78-14.707 9.285 7.254 10.931 20.661 3.677 29.945-7.254 9.286-20.66 10.931-29.945 3.677-18.54-14.484-45.406-11.187-59.89 7.354L140.31 258.831c-7.017 8.981-10.116 20.156-8.727 31.468 1.389 11.312 7.1 21.406 16.081 28.422 13.059 10.203 31.029 11.905 45.785 4.337 10.485-5.375 23.341-1.238 28.718 9.246s1.238 23.341-9.246 28.718c-12.246 6.281-25.604 9.367-38.905 9.367z" fill="#333333" p-id="17092"></Path><Path d="M735.93 342.267c21.426 10.778 48.054 9.011 68.208-6.735 27.853-21.761 32.792-61.982 11.03-89.835l-78.805-100.865c-21.761-27.853-61.982-32.792-89.835-11.03" fill="#F6B168" p-id="17093"></Path><Path d="M764.626 370.373c-13.085 0-26.218-2.979-38.283-9.047-10.525-5.295-14.766-18.12-9.471-28.645 5.294-10.526 18.117-14.766 28.645-9.471 14.686 7.388 32.54 5.626 45.487-4.488 8.98-7.017 14.691-17.11 16.08-28.422 1.389-11.312-1.71-22.487-8.727-31.468l-78.805-100.865c-7.017-8.981-17.11-14.691-28.422-16.081-11.312-1.388-22.487 1.71-31.469 8.727-9.283 7.252-22.691 5.608-29.944-3.677-7.254-9.284-5.607-22.691 3.677-29.945 17.961-14.034 40.315-20.231 62.936-17.454 22.624 2.778 42.812 14.2 56.844 32.161l78.805 100.865c28.969 37.078 22.372 90.812-14.707 119.781-15.245 11.91-33.894 18.029-52.646 18.029z" fill="#333333" p-id="17094"></Path><Path d="M469.333 341.333m-256 0a256 256 0 1 0 512 0 256 256 0 1 0-512 0Z" fill="#F6B168" p-id="17095"></Path><Path d="M469.333 618.666c-74.079 0-143.723-28.848-196.104-81.229S192 415.412 192 341.333c0-74.079 28.848-143.723 81.229-196.104S395.255 64 469.333 64s143.723 28.848 196.104 81.229 81.229 122.026 81.229 196.104-28.848 143.723-81.229 196.104c-52.38 52.381-122.025 81.229-196.104 81.229z m0-511.999c-62.682 0-121.612 24.409-165.935 68.732s-68.732 103.252-68.732 165.935c0 62.682 24.409 121.612 68.732 165.934S406.651 576 469.333 576s121.612-24.41 165.934-68.732S704 404.015 704 341.333s-24.41-121.612-68.732-165.935-103.252-68.731-165.935-68.731z" fill="#333333" p-id="17096"></Path><Path d="M296.804 580.982c113.39 61.177 227.925 61.177 343.604 0 37.99 20.938 61.191 39.464 69.602 55.579l27.058 126.695-27.058 64.931L748 884.654l-51.803 46.999-55.789-8.508-52.634 8.508-122.379-8.508H358.46l-103.698 8.836-67.986-47.328 38.63-49.136-16.059-128.467 32.632-88.81 54.825-37.258z" fill="#F6B168" p-id="17097"></Path><Path d="M469.333 917.333C457.551 917.333 448 907.782 448 896V682.667c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333V896c0.001 11.782-9.55 21.333-21.333 21.333z m94.26-44.512c-1.387 0-2.794-0.137-4.206-0.419-11.554-2.311-19.046-13.55-16.735-25.103l33.763-168.816c2.312-11.553 13.548-19.045 25.103-16.735 11.554 2.311 19.046 13.55 16.735 25.103L584.49 855.667c-2.029 10.141-10.936 17.154-20.897 17.154z" fill="#333333" p-id="17098"></Path><Path d="M469.333 917.333C457.551 917.333 448 907.782 448 896V682.667c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333V896c0.001 11.782-9.55 21.333-21.333 21.333z m-93.77-42.066c-9.961 0-18.868-7.013-20.896-17.154l-34.252-171.262c-2.311-11.553 5.182-22.792 16.735-25.103s22.792 5.182 25.103 16.735l34.252 171.262c2.311 11.553-5.182 22.792-16.735 25.103-1.412 0.282-2.82 0.419-4.207 0.419zM227.251 869.671c-9.8 0-18.626-6.794-20.816-16.761L184.05 751.023c-9.081-40.175-1.915-80.445 20.181-113.396 21.417-31.938 54.451-53.102 93.019-59.591 11.619-1.953 22.622 5.88 24.577 17.498 1.955 11.619-5.879 22.623-17.498 24.578-26.881 4.522-49.845 19.182-64.662 41.277-15.507 23.126-20.476 51.634-13.99 80.273l0.03 0.134 22.4 101.958c2.528 11.507-4.751 22.886-16.259 25.414-1.541 0.34-3.081 0.503-4.597 0.503z m485.727-7.112c-1.517 0-3.055-0.162-4.598-0.501-11.508-2.528-18.787-13.906-16.26-25.414l20.839-94.846a114.836 114.836 0 0 0 2.558-17.812c1.616-25.559-5.994-50.16-21.43-69.271-15.244-18.876-37.128-31.273-61.618-34.909-11.654-1.73-19.699-12.581-17.97-24.235 1.73-11.654 12.582-19.705 24.235-17.969 35.109 5.212 66.556 23.077 88.546 50.305 22.165 27.444 33.11 62.523 30.818 98.774a157.39 157.39 0 0 1-3.486 24.359l-20.818 94.759c-2.19 9.964-11.017 16.76-20.816 16.76z" fill="#333333" p-id="17099"></Path><Path d="M405.333 960C357.483 960 320 931.888 320 896s37.483-64 85.333-64c11.782 0 21.333 9.551 21.333 21.333s-9.551 21.333-21.333 21.333c-26.045 0-42.667 12.636-42.667 21.334s16.621 21.334 42.667 21.334S448 904.698 448 896c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0.001 35.888-37.482 64-85.333 64zM254.762 952.996c-47.851 0-85.333-28.112-85.333-64 0-14.736 6.578-29.025 18.522-40.235 10.216-9.588 23.932-16.693 39.665-20.547 11.445-2.805 22.994 4.2 25.796 15.646 2.803 11.443-4.202 22.993-15.645 25.796-16.069 3.937-25.671 12.925-25.671 19.341 0 8.698 16.621 21.334 42.667 21.334 10.537 0 20.791-2.232 28.872-6.284 10.532-5.28 23.352-1.025 28.633 9.506 5.282 10.532 1.025 23.352-9.507 28.633-14.105 7.072-30.703 10.81-47.999 10.81zM684 953.314c-10.516 0-20.771-1.376-30.481-4.092a102.68 102.68 0 0 1-8.443-2.758 93.894 93.894 0 0 1-10.615-4.753c-10.427-5.486-14.432-18.386-8.946-28.813 5.485-10.426 18.383-14.431 28.813-8.946a51.097 51.097 0 0 0 5.771 2.578 59.472 59.472 0 0 0 4.905 1.601c5.976 1.671 12.365 2.518 18.997 2.518 26.046 0 42.667-12.636 42.667-21.334 0-6.192-8.771-15.02-25.027-19.18-11.414-2.921-18.3-14.542-15.378-25.956 2.921-11.414 14.543-18.297 25.956-15.378 34.696 8.88 57.115 32.633 57.115 60.514-0.001 35.887-37.483 63.999-85.334 63.999z" fill="#333333" p-id="17100"></Path><Path d="M533.333 960C485.483 960 448 931.888 448 896c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0 8.698 16.621 21.334 42.666 21.334C559.379 917.334 576 904.698 576 896s-16.621-21.334-42.667-21.334c-11.782 0-21.333-9.551-21.333-21.333S521.551 832 533.333 832c47.851 0 85.333 28.112 85.333 64s-37.482 64-85.333 64zM469.333 451.66c-11.397 0-22.112-4.438-30.17-12.497l-12.497-12.497c-4.72-4.721-7.32-10.997-7.32-17.673s2.6-12.953 7.32-17.673c4.721-4.72 10.997-7.32 17.673-7.32h49.987c6.678 0 12.955 2.601 17.676 7.323 4.717 4.715 7.318 10.993 7.318 17.67 0 6.676-2.6 12.953-7.32 17.673l-12.497 12.497c-8.058 8.059-18.773 12.497-30.17 12.497z" fill="#333333" p-id="17101"></Path><Path d="M426.853 514.537c-35.29 0-64-28.71-64-64 0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0 11.764 9.57 21.333 21.333 21.333s21.333-9.57 21.333-21.333c0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0.002 35.29-28.709 64-63.998 64z" fill="#333333" p-id="17102"></Path><Path d="M512.186 514.537c-35.29 0-64-28.71-64-64 0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0 11.764 9.57 21.333 21.333 21.333 11.764 0 21.334-9.57 21.334-21.333 0-11.782 9.551-21.333 21.333-21.333s21.333 9.551 21.333 21.333c0.001 35.29-28.709 64-63.999 64z" fill="#333333" p-id="17103"></Path><Path d="M362.667 320m-21.333 0a21.333 21.333 0 1 0 42.666 0 21.333 21.333 0 1 0-42.666 0Z" fill="#333333" p-id="17104"></Path><Path d="M362.667 347.733c-15.292 0-27.733-12.441-27.733-27.733s12.441-27.733 27.733-27.733S390.4 304.708 390.4 320s-12.441 27.733-27.733 27.733z m0-42.667c-8.234 0-14.933 6.699-14.933 14.934s6.699 14.934 14.933 14.934 14.934-6.699 14.934-14.934-6.7-14.934-14.934-14.934z" fill="#333333" p-id="17105"></Path><Path d="M576 320m-21.333 0a21.333 21.333 0 1 0 42.666 0 21.333 21.333 0 1 0-42.666 0Z" fill="#333333" p-id="17106"></Path><Path d="M576 347.733c-15.292 0-27.733-12.441-27.733-27.733s12.441-27.733 27.733-27.733 27.733 12.441 27.733 27.733-12.441 27.733-27.733 27.733z m0-42.667c-8.234 0-14.933 6.699-14.933 14.934s6.698 14.934 14.933 14.934 14.933-6.699 14.933-14.934-6.699-14.934-14.933-14.934z" fill="#333333" p-id="17107"></Path></Svg>
            </LinearGradient>
            <Text style={style.ItemText}>宠物顾问</Text>
          </ThemedView>
        </ThemedView>
        <ThemedView style={arr.length === 0 ? style.LiaoW : ''}>
          {arr.length === 0 ? (
            <View style={style.LiaoWimg}>
              <Image
                source={require('../conversation/static/1.png')}
                style={style.LiaoImg}
              />
              <Text style={style.LiaoText}>暂无会话</Text>
            </View>
          ) : (
            arr.map((item, index) => (
              <View key={index} style={style.YiIten}>
                <View style={style.yiimgs}>
                    <Text style={{textAlign:'center'}}>头像</Text>
                </View>
                <View style={style.yitext}>
                  <Text style={{ fontSize: 15, fontWeight: 'bold' }}>用户名</Text>
                </View>
              </View>
            ))
          )}
        </ThemedView>
        <ThemedView style={style.cai}>
          <ThemedText style={style.caiText}>猜/您/喜/欢</ThemedText>
        </ThemedView>
        <ThemedView style={style.list}>
          <View style={style.container}>
            {/* 左边一列 */}
            <View style={style.column}>
              {leftColumn.map((item) => (
                <TouchableOpacity key={item.userId} style={[style.item, { height: h(item.height) }]} onPress={() => router.push(`/info?item=${encodeURIComponent(JSON.stringify(item))}`)}>
                  <Image source={{ uri: item.src }} style={{ width: '100%', height: item.height - 15, }} />
                </TouchableOpacity>
              ))}
            </View>

            {/* 右边一列 */}
            <View style={style.column}>
              {rightColumn.map((item) => (
                <TouchableOpacity key={item.userId} style={[style.item, { height: h(item.height) }]} onPress={() => router.push(`/info?item=${encodeURIComponent(JSON.stringify(item))}`)}>
                  <Image source={{ uri: item.src }} style={{ width: '100%', height: item.height - 15, }} />
                </TouchableOpacity>
              ))}
            </View>
          </View>
        </ThemedView>
      </ScrollView>
    </ThemedView>
  );
}